home *** CD-ROM | disk | FTP | other *** search
- Path: user1.mnsinc.com!huang
- From: huang@mnsinc.com (Szu-Wen Huang)
- Newsgroups: comp.lang.c
- Subject: Re: printf problems..
- Date: 17 Apr 1996 12:34:55 GMT
- Organization: Monumental Network Systems
- Message-ID: <4l2ohl$t54@news1.mnsinc.com>
- References: <4l1ubi$c3p@news.ysu.edu>
- NNTP-Posting-Host: user1.mnsinc.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Brian T. Richardson (bi287@yfn.ysu.edu) wrote:
-
- : I want it to output '02.11' not '2.11'
-
- : I tried something like printf(temp, "%O2.2f", myvar)
- : and other varations and nothing has worked for
- : me, I know I'm missing something really obvious..
-
- Yes, you certainly missed reading the manual ;). Try "%05.2f" as a
- format string, then by all means find out why 5 would work but 2
- won't. Hth.
-